home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #6
/
Amiga Plus CD - 1996 - No. 06.iso
/
pd
/
netz
/
internet-set.v4.0
/
amitcp-4.0
/
bin
/
modem.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-07-23
|
892b
|
47 lines
/* Get info for variables from user */
Say ''
Say 'This will change your Modem settings as mentioned in'
Say 'the Modem.Help file'
Say ''
Say 'What do you want to do ? (C) = Change (R) = Restore Defaults'
Say ''
Say 'Enter C or R'
Say''
Pull SetMod
If SetMod = 'C' Then
Call YourSet
Else
ModSet = 'AT&F&D0L1'
EndIF
Say ''
Say 'You chose ('||SetMod||') ''and your AT string is now: 'ModSet
Say ''
Say 'Press Enter to Exit'
Pull Answer
Say ''
Say 'All done'
/* */
If Open(1,'AmiTCP:bin/modem.dat','Write') Then /* Opens modem.dat for Output */
Do
WriteLn(1,ModSet) Then /* write single var to file */
End
Close(1) /* close file 1 */
Exit
/* New Modem AT String */
YourSet:
Say 'Enter your AT code string as Modem.Help told you'
Say ''
parse pull MySet
ModSet = MySet
return